package com.lagou.io;

import java.io.InputStream;

/***
 * Resources类，加载配置文件转成输入流
 */
public class Resources {

    //(1) 根据配置文件路径，将配置文件加载成字节输入流，存储在内存中
    public static InputStream getResourceAsStream(String path) {
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
